package commands
{
	import flash.display.DisplayObject;

	public class RotateCounterclockwiseCommand implements IUndoableCommand,IRedoableCommand
	{
		private var _reveiver:DisplayObject;
		public function RotateCounterclockwiseCommand(reveiver:DisplayObject)
		{
			this._reveiver = reveiver;
		}
		
		public function execute():void
		{
			this._reveiver.rotation -= 20;
		}
		
		public function undo():void
		{
			this._reveiver.rotation += 20;
		}
		public function redo():void{
			execute();
		}
	}
}